<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<link rel="stylesheet" media="screen and (max-width: 640px)" href="resources/css/nghia-small-screen.css" />
	<link rel="stylesheet" media="screen and (min-width: 641px) and (max-width: 800px)" href="resources/css/nghia-small-screen.css" />
	<link rel="stylesheet" media="screen and (min-width: 801px) and (max-width: 1024px)" href="resources/css/nghia-medium-screen.css" />
	<link rel="stylesheet" media="screen and (min-width: 1025px)" href="resources/css/nghia-large-screen.css" />
	<link rel="stylesheet" media="screen and (device-aspect-ratio: 40/71)" href="resources/css/nghia-small-screen.css"/>
</h:head>

<f:event listener="#{duyetQuanAnManagedBean.onLoad}" type="preRenderView"></f:event>

<body>
	<ui:include src="headerAdmin.xhtml" />
	<div id="content-outer">
		<div id="content">
			<h:form id="mainform">
				<h1 style="padding: 20px; text-align: center">Duyệt quán ăn</h1>
				<div class="datatable">
					<p:dataTable var="list"
						value="#{duyetQuanAnManagedBean.quanAnDataModel}" paginator="true"
						rows="10"
						paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
						rowsPerPageTemplate="5,10,20"
						selection="#{duyetQuanAnManagedBean.selectedQuanAn}"
						scrollable="true">
						<p:column selectionMode="multiple" style="width: 20px"></p:column>
						<p:column headerText="Tên QA" style="width: 150px">#{list.tenCQA}</p:column>
						<p:column headerText="Tài khoản" style="width: 100px">#{list.tenTKCQA}</p:column>
						<p:column headerText="Địa chỉ CQA" style="width: 200px">#{list.diaChiCQA}</p:column>
						<p:column headerText="Giới tính" style="width: 50px">#{list.gioiTinhCQA}</p:column>
						<p:column headerText="SDT" style="width: 100px">#{list.sdtCQA}</p:column>
						<p:column headerText="Email" style="width: 200px">#{list.emailCQA}</p:column>
						<p:column headerText="Địa chỉ quán ăn" style="width: 200px">#{list.diaChiQA}</p:column>
						<p:column headerText="Mô tả" style="width: 400px">#{list.moTaQA}</p:column>
					</p:dataTable>
				</div>
				<br></br>

				<!--  end product-table................................... -->
				<table border="0" cellpadding="0" cellspacing="0"
					style="float: left; margin-left: 810px">
					<tr>
						<td></td>
						<td style="padding-left: 190px"><h:commandButton
								class="btn btn-primary btn-move-left-duyet-nha-tro" value="Duyệt quán ăn"
								type="submit"
								style="height:30px; font-size:14px; padding-top:0px"
								action="#{duyetQuanAnManagedBean.duyetQuanAn}"></h:commandButton></td>

					</tr>

				</table>
			</h:form>
		</div>
	</div>
</body>
</html>
